
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>2DSymbol · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="di-tu-shi-jian.html" />
    
    
    <link rel="prev" href="renderer.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介页
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="./">
            
                <a href="./">
            
                    
                    ArcGIS API for JavaScript4.x
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="xue-xi-he-kai-fa-ji-qiao.html">
            
                <a href="xue-xi-he-kai-fa-ji-qiao.html">
            
                    
                    学习技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="kai-fa-ji-qiao.html">
            
                <a href="kai-fa-ji-qiao.html">
            
                    
                    开发技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="mapimagelayer.html">
            
                <a href="mapimagelayer.html">
            
                    
                    MapImageLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="featurelayer.html">
            
                <a href="featurelayer.html">
            
                    
                    FeatureLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="graphiclayer.html">
            
                <a href="graphiclayer.html">
            
                    
                    GraphicLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="renderer.html">
            
                <a href="renderer.html">
            
                    
                    Renderer
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.2.7" data-path="symbol.html">
            
                <a href="symbol.html">
            
                    
                    2DSymbol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="di-tu-shi-jian.html">
            
                <a href="di-tu-shi-jian.html">
            
                    
                    地图事件之地图状态监听
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="di-tu-shi-jian-zhi-dian-ji.html">
            
                <a href="di-tu-shi-jian-zhi-dian-ji.html">
            
                    
                    地图事件之点击
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="mo-ni-dian-yun-dong-tu-ceng.html">
            
                <a href="mo-ni-dian-yun-dong-tu-ceng.html">
            
                    
                    模拟点运动图层
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="untitled.html">
            
                <a href="untitled.html">
            
                    
                    集成echarts实现迁徙图特效
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="shi-xian-dian-ju-he-xiao-guo.html">
            
                <a href="shi-xian-dian-ju-he-xiao-guo.html">
            
                    
                    实现点聚合效果
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../arcgis-api-for-javascript3.x.html">
            
                <a href="../arcgis-api-for-javascript3.x.html">
            
                    
                    ArcGIS API for JavaScript3.x
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../vue.html">
            
                <a href="../vue.html">
            
                    
                    VUE
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../docker/">
            
                <a href="../docker/">
            
                    
                    Docker
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../docker/docker-shi-yong-nginx-dai-li-zhuan-fa-ssr.html">
            
                <a href="../docker/docker-shi-yong-nginx-dai-li-zhuan-fa-ssr.html">
            
                    
                    Docker使用Nginx代理转发SSR
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../docker/docker-da-jian-ge-ren-wordpress-wang-zhan.html">
            
                <a href="../docker/docker-da-jian-ge-ren-wordpress-wang-zhan.html">
            
                    
                    Docker搭建个人wordpress网站
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../docker/docker-an-zhuang.html">
            
                <a href="../docker/docker-an-zhuang.html">
            
                    
                    Docker安装
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../nginx.html">
            
                <a href="../nginx.html">
            
                    
                    Nginx
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../untitled.html">
            
                <a href="../untitled.html">
            
                    
                    小技巧
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../ci-cd.html">
            
                <a href="../ci-cd.html">
            
                    
                    CI/CD
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >2DSymbol</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="2dsymbol">2DSymbol</h1>
<table>
<thead>
<tr>
<th style="text-align:left">&#x7C7B;&#x578B;</th>
<th style="text-align:left">&#x6E32;&#x67D3;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">&#x70B9;</td>
<td style="text-align:left"><a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html" target="_blank">SimpleMarkerSymbol</a>, <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureMarkerSymbol.html" target="_blank">PictureMarkerSymbol</a>, <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html" target="_blank">TextSymbol</a></td>
</tr>
<tr>
<td style="text-align:left">&#x7EBF;</td>
<td style="text-align:left"><a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleLineSymbol.html" target="_blank">SimpleLineSymbol</a>, <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html" target="_blank">TextSymbol</a></td>
</tr>
<tr>
<td style="text-align:left">&#x9762;</td>
<td style="text-align:left"><a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleFillSymbol.html" target="_blank">SimpleFillSymbol</a>, <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-PictureFillSymbol.html" target="_blank">PictureFillSymbol</a>, <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-SimpleMarkerSymbol.html" target="_blank">SimpleMarkerSymbol</a>, <a href="https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-TextSymbol.html" target="_blank">TextSymbol</a></td>
</tr>
</tbody>
</table>
<h2 id="simplemarkersymbol">SimpleMarkerSymbol</h2>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> symbol = {
  type: <span class="hljs-string">&quot;simple-marker&quot;</span>,  <span class="hljs-comment">// autocasts as new SimpleMarkerSymbol()</span>
  style: <span class="hljs-string">&quot;square&quot;</span>,<span class="hljs-comment">//circle,cross,diamond,square,triangle,x</span>
  color: <span class="hljs-string">&quot;blue&quot;</span>,
  size: <span class="hljs-string">&quot;8px&quot;</span>,  <span class="hljs-comment">// pixels</span>
  outline: {  <span class="hljs-comment">// autocasts as new SimpleLineSymbol()</span>
    color: [ <span class="hljs-number">255</span>, <span class="hljs-number">255</span>, <span class="hljs-number">0</span> ],
    width: <span class="hljs-number">3</span>  <span class="hljs-comment">// points</span>
  },
  xoffset: <span class="hljs-number">2</span>px,
  yoffset: <span class="hljs-number">2</span>px
};
</code></pre>
<h2 id="picturemarkersymbol">PictureMarkerSymbol</h2>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> symbol = {
  type: <span class="hljs-string">&quot;picture-marker&quot;</span>,  <span class="hljs-comment">// autocasts as new PictureMarkerSymbol()</span>
  url: <span class="hljs-string">&quot;https://static.arcgis.com/images/Symbols/Shapes/BlackStarLargeB.png&quot;</span>,
  width: <span class="hljs-string">&quot;64px&quot;</span>,
  height: <span class="hljs-string">&quot;64px&quot;</span>,
  angle: <span class="hljs-number">45</span>,
  xoffset: <span class="hljs-number">2</span>px,
  yoffset: <span class="hljs-number">2</span>px
};
</code></pre>
<h2 id="textsymbol">TextSymbol</h2>
<pre><code class="lang-javascript"><span class="hljs-keyword">var</span> textSymbol = {
  type: <span class="hljs-string">&quot;text&quot;</span>,  <span class="hljs-comment">// autocasts as new TextSymbol()</span>
  color: <span class="hljs-string">&quot;white&quot;</span>,
  <span class="hljs-comment">//&#x5149;&#x6655;</span>
  haloColor: <span class="hljs-string">&quot;black&quot;</span>,
  haloSize: <span class="hljs-string">&quot;1px&quot;</span>,
  text: <span class="hljs-string">&quot;You are here&quot;</span>,
  xoffset: <span class="hljs-number">3</span>,
  yoffset: <span class="hljs-number">3</span>,
  font: {  <span class="hljs-comment">// autocasts as new Font()</span>
    size: <span class="hljs-number">12</span>,
    family: <span class="hljs-string">&quot;Josefin Slab&quot;</span>,
    weight: <span class="hljs-string">&quot;bold&quot;</span>
  },
  angle: <span class="hljs-number">45</span>,
  backgroundColor: <span class="hljs-string">&quot;black&quot;</span>,
  borderLineColor: <span class="hljs-string">&quot;black&quot;</span>,
  borderLineSize: <span class="hljs-number">2</span>,
  horizontalAlignment :<span class="hljs-string">&quot;&quot;</span>,<span class="hljs-comment">//left | right | center | justify</span>
  kerning : <span class="hljs-literal">true</span>,<span class="hljs-comment">//&#x662F;&#x5426;&#x9002;&#x5E94;&#x5B57;&#x8DDD;</span>
  rotated : <span class="hljs-literal">false</span><span class="hljs-comment">//&#x662F;&#x5426;&#x65CB;&#x8F6C;</span>
  verticalAlignment :<span class="hljs-string">&quot;&quot;</span>,<span class="hljs-comment">// baseline | top | middle | bottom</span>

};
</code></pre>
<h2 id="simplelinesymbol">SimpleLineSymbol</h2>
<h2 id="simplefillsymbol">SimpleFillSymbol</h2>
<h2 id="picturefillsymbol">PictureFillSymbol</h2>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="renderer.html" class="navigation navigation-prev " aria-label="Previous page: Renderer">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="di-tu-shi-jian.html" class="navigation navigation-next " aria-label="Next page: 地图事件之地图状态监听">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"2DSymbol","level":"1.2.7","depth":2,"next":{"title":"地图事件之地图状态监听","level":"1.2.8","depth":2,"path":"arcgis-api-for-javascript4.x/di-tu-shi-jian.md","ref":"arcgis-api-for-javascript4.x/di-tu-shi-jian.md","articles":[]},"previous":{"title":"Renderer","level":"1.2.6","depth":2,"path":"arcgis-api-for-javascript4.x/renderer.md","ref":"arcgis-api-for-javascript4.x/renderer.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"arcgis-api-for-javascript4.x/symbol.md","mtime":"2019-09-27T03:24:31.190Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-09-30T03:42:42.849Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

